package com.lesso.yzh.sunflower.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import lombok.Data;
import java.time.LocalDateTime;

@Data
public abstract class BaseModel<T extends Model<T>> extends Model<T> {
    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 0正常,1删除
     */
    @TableLogic
    @TableField("del_status")
    private Integer delStatus;
}
